FME Introduction - Session 8

 Important Transformer explaination with example


1) AttributeExploder : It's Feature Based Transformer.


Typical Uses

  • Transposing or manipulating tabular data (such as spreadsheets)
  • Melting data
  • Extracting the attribute schema from features for use in dynamic translation attribute mappings
  • Extracting the attribute schema from features to write as metadata/documentation
  • Preparing data for charts and reports
The AttributeExploder receives features with attributes, and extracts both the attribute names and their values. It can do one of two things with them (the Exploding Type) - either create multiple new features (one for each attribute), or add the information to the original feature as a list attribute.

Exploding Type: Features

If the attributes are exploded into Features, each input feature will become many - one for every attribute in the original feature. The new features will have both the original attribute names and values added as new attributes. Below, we use the default new attribute names _attr_name and _attr_value.

One (1) feature becomes twelve (12).

In the case of a spreadsheet, where a row is considered a single feature, this is the equivalent of exploding every cell into its own feature.

Exploding Type: List

If the attributes are exploded into a List, a new list attribute is added to the original feature.

The attribute names and values are added as list elements.

One (1) feature in produces one (1) feature out, with a list attribute.

No comments:

Post a Comment

Stay Connected To Get Free Updates!

Subscribe via Email

You can also receive Free Email Updates:

Widget by NBT